package com.margo.project.tomcat.session;

import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MargoHttpSessionBindingListener implements HttpSessionBindingListener{
	Logger logger=LoggerFactory.getLogger(MargoHttpSessionBindingListener.class);
    /**
     * Notifies the object that it is being bound to a session and identifies
     * the session.
     * The default implementation is a NO-OP.
     *
     * @param event
     *            the event that identifies the session
     * @see #valueUnbound
     */
    public void valueBound(HttpSessionBindingEvent event) {
    	logger.info("valueBound");
    }

    /**
     * Notifies the object that it is being unbound from a session and
     * identifies the session.
     * The default implementation is a NO-OP.
     *
     * @param event
     *            the event that identifies the session
     * @see #valueBound
     */
    public void valueUnbound(HttpSessionBindingEvent event) {
    	logger.info("valueUnbound");
    }
}
